/**
 * @author Pia 
 * @version 1
 * @since 16/02/2015
 */
package MainPruebas;
import exceptions.PersistenciaException;
import PersistenciaDAOs.DAOLancha;
import logica.Lancha;
import logica.Pirata; 

public class MainPirata {
		public static void main (String[] args) throws PersistenciaException {
			
			DAOLancha daoLan = new DAOLancha();
			Lancha[] lan = new Lancha[3];
			lan = daoLan.selectCreate(1, 1);
			
			Pirata pirata= new Pirata(1,"nom1","pas1",lan);
			System.out.print("Pirata creado");
			
			System.out.println("\n ID " + pirata.getId());
			System.out.println("\n Nom " + pirata.getNombre());
			System.out.println("\n Pass " + pirata.getPass());
			System.out.println("\n idLan1 " + pirata.getLancha(1).getId());
			System.out.println("\n idLan2 " + pirata.getLancha(2).getId());
			System.out.println("\n idLan3 " + pirata.getLancha(3).getId());
			
		}

	
}

